libxl: include domain id in userdata path.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Sep 2010 17:55:07 +0000 (18:55 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Sep 2010 17:55:07 +0000 (18:55 +0100)
commit4a993251f0a5d38e3ed90fa18533c99063bf576c
tree0a0e5b75855a94ecc11c034099e1a7e5bd1a2de1
parent5545b07a5c5d9c842b39c4a9b6e561f37d7fcbb4
libxl: include domain id in userdata path.

The userdata is specific to a particular incarnation of a domain and
the patch is therefor required to be unique to each incarnation. If
the user has explicitly configured a UUID in their domain
configuration then the path is no longer unique since
22124:22366e13f76d "xl: randomly generate UUIDs" which (correctly)
caused the uuid domain configuration option to be obeyed.

If userdata is not unique to each incarnation of a domain then
localhost live migration is broken because the target is created (and
writes its userdata) before the sender destroys the domain (and
deletes its userdata).

Strictly speaking I think the UUID is unnecessary but it is perhaps
helpful to people looking in the userdata directory, for debugging
etc.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dom.c